package net.luerything.restlet.gwt.rpc;

import com.google.gwt.user.server.rpc.SerializationPolicy;
import com.google.gwt.user.server.rpc.SerializationPolicyLoader;

import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.util.List;

/**
 * @author keke
 */
public class DefaultPolicyLoader implements PolicyLoader {
  @Override
  public SerializationPolicy loadFromStream(final InputStream inputStream,
                                            final List<ClassNotFoundException> classNotFoundExceptions)
      throws IOException, ParseException {
    return SerializationPolicyLoader.loadFromStream(inputStream, classNotFoundExceptions);
  }
}
